<!DOCTYPE html>
<!--[if lt IE 7]>      <html class="no-js lt-ie9 lt-ie8 lt-ie7"  lang="en"> <![endif]-->
<!--[if IE 7]>         <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]-->
<!--[if IE 8]>         <html class="no-js lt-ie9" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <title><?= $seo_title ?></title>
        <meta name="description" content="<?= $seo_description ?>">
        <meta name="keywords" content="<?= $seo_keywords ?>">

        <meta name="viewport" content="width=device-width, initial-scale=1.0">

        <link rel="shortcut icon" href="<?= base_url() ?>assets/img/favicon.png">

        <script src="<?= base_url() ?>assets/js/libs/modernizr-2.6.1.min.js"></script>

        <link href='https://fonts.googleapis.com/css?family=Lato:400,300,700,100italic' rel='stylesheet' type='text/css'>

        <link rel="stylesheet" href="<?= base_url() ?>assets/css/normalize.css">
        <link rel="stylesheet" href="<?= base_url() ?>assets/css/bootstrap.css" media="screen">
        <link rel="stylesheet" href="<?= base_url() ?>assets/css/comp_all.css">
        <link rel="stylesheet" href="<?= base_url() ?>assets/css/main.css?v=1.0.1">
        <link rel="stylesheet" href="<?= base_url() ?>assets/css/responsive.css">

        <?php
            $method = $this->router->fetch_method();
            switch ($method) {
                case 'excursion_view':
                case 'transfers_view':
                case 'top_offer_view':
                case 'transfers_view':
                case 'cipatravel':
                    ?>
                    <link rel="stylesheet" href="<?= base_url() ?>assets/css/prettyPhoto.css">

            <?php } ?>


        <script type="text/javascript">
            var base_url = '<?= base_url(); ?>';
            var lang_url = '<?= lang_url(); ?>';
            var method = '<?= $this->router->fetch_method(); ?>';
            var HOST_URL_HOTELS = '<?= HOST_URL_HOTELS; ?>';
            var cur_lang = '<?= $this->lang->mci_current(); ?>';

            showMe = function () {

                elem = $(this).attr('data-elem');
                find = $(this).attr('data-find');

                var no_row = find == 'tr' ? 4 : 3;

                var list = $(this).parent().parent().find(elem);

                var li = list.find(find + ':nth-child(' + no_row + ')');

                $(this).hide();

                if ($(this).hasClass('more')) {
                    li.nextAll().show();
                    $(this).parent().find('.less').show();
                } else {
                    li.nextAll().hide();
                    $(this).parent().find('.more').show();
                }

            }
        </script>

    </head>
    <body id="<?= $this->router->fetch_method() ?>-body" class="body_<?= $this->lang->mci_current() ?> body_<?= strtolower(currency_sign()) ?>">

        <div class="container">

            <div id="advert-left">

                <!-- (c) 2000-2015 Gemius SA version 2.0: /cipa-booking.com / entry page / branding, Telenor summer campaign -->
                <script language="javascript1.2" type="text/javascript">
                    //<![CDATA[
                    document.write('<scr' + 'ipt src="//rsgde.adocean.pl/_' + (new Date()).getTime() + '/ad.js?id=qJKbHG62SMr14OgjDAlyteukAAzTBaMfc12acSC2wG3.N7/redir=" language="javascript"></scr' + 'ipt>');
                    //]]>
                </script>


            </div>

            <div id="advert-right">

                <!-- (c) 2000-2015 Gemius SA version 2.0: /cipa-booking.com / entry page / branding desno, Telenor summer campaign -->
                <script language="javascript1.2" type="text/javascript">
                    //<![CDATA[
                    document.write('<scr' + 'ipt src="//rsgde.adocean.pl/_' + (new Date()).getTime() + '/ad.js?id=ySahWlFEzErI34xozYHPqt3ETH4Rox.Sxj.ZSGD3MMv.C7/redir=" language="javascript"></scr' + 'ipt>');
                    //]]>
                </script>

            </div>

            <div id="headleft" class="pull-right">


                <div id="topnav" class="clearfix">
                    <ul class="clearfix pull-right">
                    <!--<li><span><?= date('d.m.Y, H:i', time()) ?>h<span></li>-->
                        <li><a href="<?= lang_url('cipatravel/about-7') ?>"><?= lang('top.about') ?></a></li>
                        <li><a href="<?= lang_url('cipatravel/customer-service-8') ?>"><?= lang('top.servcie'); ?></a></li>
                        <li class="dropdown"><a href="javascript:" class="a_currency"><span class="zastavica <?= isset($_GET['currency']) ? strtolower($_GET['currency']) : 'eur'; ?>"></span><?= lang('top.currency'); ?></a>
                            <ul>
                                <li><a href="<?= base_url($this->uri->uri_string() . $template_currency . $currency_prefix . 'currency=EUR'); ?>"><span class="zastavica eur"></span>EUR</a></li>
                                <li><a href="<?= base_url($this->uri->uri_string() . $template_currency . $currency_prefix . 'currency=RUB'); ?>"><span class="zastavica rub"></span>RUB</a></li>
                                <li><a href="<?= base_url($this->uri->uri_string() . $template_currency . $currency_prefix . 'currency=USD'); ?>"><span class="zastavica usd"></span>USD</a></li>
                            </ul>
                        </li>
                        <li class="dropdown"><a href="javascript:"><span class="zastavica <?= $this->lang->mci_current() ?>"></span><?= lang('top.language'); ?></a>
                            <ul>

                                <?php
                                    if (isset($_GET)) {

                                        $my_get = $_GET;

                                        if (isset($my_get['lang']))
                                            unset($my_get['lang']);

                                        if (!empty($my_get))
                                            $my_get = '?' . http_build_query($my_get);
                                        else
                                            $my_get = '';
                                    }else {
                                        $my_get = '';
                                    }
                                ?>

                                <li><a href="<?= base_url(lchange('en')) . $my_get ?>"><span class="zastavica en"></span>English</a></li>
                                <li><a href="<?= base_url(lchange('me')) . $my_get ?>"><span class="zastavica me"></span>Crnogorski</a>
                                <li><a href="<?= base_url(lchange('de')) . $my_get ?>"><span class="zastavica de"></span>Deutsch</a></li>
                                <li><a href="<?= base_url(lchange('ru')) . $my_get ?>"><span class="zastavica ru"></span>Rусский</a></li>

                            </ul>
                        </li>
                    </ul>
                </div><!-- / topnav-->

                <div id="social"  class="pull-right clearfix">
                    <ul>
                        <li><a href="https://www.facebook.com/pages/CipaTravel-Accommodation-booking-Montenegro/936480533029404?ref=aymt_homepage_panel" target="_blank" class="fb"></a></li>
                        <li><a href="https://twitter.com/CipaTravel1" target="_blank" class="tw"></a></li>
                        <li><a href="https://plus.google.com/u/0/b/108885531505348338921/+Cipa-bookingMe/posts" target="_blank" class="li"></a></li>
                        <li><a href="http://me.linkedin.com/in/cipatravel" target="_blank" class="gp"></a></li>
                    </ul>

                </div><!-- / social-->
                <div class="smallsep sepmargin1 pull-right"></div>
                <div id="infoline" class="pull-right">Info: +382 69 456 772</div>

            </div>

            <a id="logo" class="pull-left" href="<?= $template_logo_URL ?>"><span class="in_text"><?= lang('specialist_vaction'); ?></span></a>
            <div class="mobile_friendly pull-left"></div>
        </div><!-- / header-->

        <div class="container navtop">

            <nav class="nav_<?= $this->lang->mci_current() ?>">
                <?php
                    $navsel['home'] = '';
                    $navsel['appartment'] = '';
                    $navsel['hotel'] = '';
                    $navsel['authentic'] = '';
                    $navsel['hostel'] = '';
                    $navsel['excursions'] = '';
                    $navsel['rentacar'] = '';
                    $navsel['transfers'] = '';
                    $navsel['top_offer'] = '';

                    $method = $this->router->fetch_method();

                    switch ($method):

                        case 'index':
                            $navsel['home'] = 'active';
                            break;
                        case 'excursion':
                        case 'excursion_view':
                            $navsel['excursions'] = 'active';
                            break;
                        case 'rentacar':
                            $navsel['rentacar'] = 'active';
                            break;
                        case 'transfers':
                            $navsel['transfers'] = 'active';
                            break;

                        case 'top_offer':
                        case 'top_offer_view':
                            $navsel['top_offer'] = 'active';
                            break;

                    endswitch;

                    if ($this->router->fetch_class() == 'excursions' && $method = 'index'):
                        $navsel['home'] = '';
                        $navsel['excursions'] = 'active';
                    endif;

                    if ($this->router->fetch_class() == 'transfers' && $method = 'index'):
                        $navsel['home'] = '';
                        $navsel['transfers'] = 'active';
                    endif;

                    if (isset($_GET['acc_type']))
                        switch ($_GET['acc_type']) {
                            case 'appartment':
                                $navsel['appartment'] = 'active';
                                break;
                            case 'hotel':
                                $navsel['hotel'] = 'active';
                                break;
                            case 'authentic accommodation':
                                $navsel['authentic'] = 'active';
                                break;
                            case 'youth hostel':
                                $navsel['hostel'] = 'active';
                                break;
                        }
                ?>

                <ul class="clearfix sf-menu">

                    <li class="<?= $navsel['home'] ?>"><a  href="<?= $template_logo_URL ?>"><span><img src="<?= base_url() ?>assets/img/home.png" alt=""></span> <span>Home<br/><small>Home</small></span></a></li>

                    <li class="<?= $navsel['appartment'] . ' ' . $navsel['hotel'] . ' ' . $navsel['authentic'] . ' ' . $navsel['hostel'] ?>" id="fixnav">
                        <a  href="javascript:"><?= lang('nav.accommodation.private'); ?></a>
                        <ul>
                            <li><a href="<?= lang_url('search') ?>?acc_type=appartment&preview=1<?= lcu() ?>"><?= lang('form.private'); ?></a></li>
                            <li><a href="<?= lang_url('search') ?>?acc_type=hotel&preview=1<?= lcu() ?>"><?= lang('nav.hotels'); ?></a></li>
                            <li><a href="<?= lang_url('search') ?>?acc_type=authentic accommodation&preview=1<?= lcu() ?>"><?= lang('form.authentic') ?></a></li>
                            <li><a href="<?= lang_url('search') ?>?acc_type=youth hostel&preview=1<?= lcu() ?>"><?= lang('nav.hostels_sub'); ?></a></li>
                            <li><a href="<?= lang_url('search') ?>?acc_type=houses with pool&preview=1<?= lcu() ?>"><?= lang('form.house_pools'); ?></a></li>
                        </ul>
                    </li>

                    <li class="<?= $navsel['transfers'] ?>"><a href="<?= lang_url('transfers') ?>"><?= lang('nav.transfers'); ?></a></li>
                    <li class="<?= $navsel['rentacar'] ?>"><a href="<?= lang_url('rentacar') ?>"><?= lang('nav.rentacar'); ?></a></li>
                    <li class="<?= $navsel['excursions'] ?>"><a href="<?= lang_url('excursions') ?>"><?= lang('nav.excursions'); ?></a></li>
                    <li class="<?= $navsel['top_offer'] ?>"><a href="<?= lang_url('top_offer') ?>"><?= lang('deals.deals'); ?></a></li>

                </ul>
            </nav> <!-- / nav-->

            <?= $contents ?>

        </div>

        <div class="container" id="membersof">

            <div class="block">

                <div class="centered">

                    <strong><?= lang('members_of') ?></strong>

                    <img src="<?= base_url() ?>assets/img/members-of.jpg" alt="<?= lang('members_of') ?>" style="">

                </div>

            </div>

        </div>

        <footer class="clearfix">
            <div class="block container fancy_bullets">
                <ul class="clearfix centered">
                    <li class="<?= $navsel['appartment'] ?>"><a  href="<?= lang_url('search') ?>?acc_type=appartment&preview=1<?= lcu() ?>"><?= lang('foot.private'); ?></a></li>
                    <li class="<?= $navsel['hotel'] ?>"><a href="<?= lang_url('search') ?>?acc_type=hotel&preview=1<?= lcu() ?>"><?= lang('nav.hotels'); ?></a></li>
                    <li class="<?= $navsel['authentic'] ?>"><a href="<?= lang_url('search') ?>?acc_type=authentic accommodation&preview=1<?= lcu() ?>"><?= lang('foot.authentic'); ?></a></li>
                    <li class="<?= $navsel['hostel'] ?>"><a href="<?= lang_url('search') ?>?acc_type=youth hostel&preview=1<?= lcu() ?>"><?= lang('foot.youth'); ?></a></li>
                    <li class="<?= $navsel['transfers'] ?>"><a href="<?= lang_url('transfers') ?>"><?= lang('nav.transfers'); ?></a></li>
                    <li class="<?= $navsel['rentacar'] ?>"><a href="<?= lang_url('rentacar') ?>"><?= lang('nav.rentacar'); ?></a></li>
                    <li class="<?= $navsel['excursions'] ?>"><a href="<?= lang_url('excursions') ?>"><?= lang('nav.excursions'); ?></a></li>
                </ul>
            </div>
        </footer>

        <div class="main_footer_wide">

            <div class="container clearfix" id="whyus">

                <div class="whycipa clearfix">

                    <h3><?= lang('why_cipa_title') ?></h3>

                    <?= lang('why_cipa_text') ?>

                </div>

                <div class="pull-right customerservice">

                    <h3>Customer service </h3>

                    <ul class="address2">
                        <li><?= lang('foot.mon_fri'); ?>: 08:00 - 16:00 h (CET)<br></li>
                        <li>Email: <a href="mailto:cipa@t-com.me">cipa@t-com.me</a></li>
                        <li>Tel: +382 33 468 196</li>
                        <li>Fax: +382 33 468 150</li>  
                        <li>Skype: <a href="skype:cipa_booking?call">cipa_booking</a></li>
                    </ul>

                </div>

            </div>

            <div class="container">

                <div class="block">

                    <ul class="whybook clearfix centered">
                        <li><?= lang('why1') ?></li>
                        <li><?= lang('why2') ?></li>
                        <li><?= lang('why3') ?></li>
                        <li><?= lang('why4') ?></li>
                        <li><?= lang('why5') ?></li>
                    </ul>

                </div>

            </div>

            <div class="block container">
                <ul class="general clearfix centered">
                    <li><a href="<?= lang_url('cipatravel/how-to-make-reservation-17') ?>"><?= lang('foot.make_res'); ?>?</a></li>
                    <li><a href="<?= lang_url('cipatravel/payment-options-18') ?>"><?= lang('foot.payment'); ?></a></li>
                    <li><a href="<?= lang_url('cipatravel/termss-19') ?>"><?= lang('foot.terms'); ?></a></li>
                    <li><a href="<?= lang_url('cipatravel/owners-cooperation-20') ?>"><?= lang('foot.owners'); ?></a></li>
                    <li><a href="<?= lang_url('cipatravel/links') ?>"><?= lang('foot.links'); ?></a></li>
                    <li><a href="<?= lang_url('cipatravel/faq-43') ?>">FAQ</a></li>
                </ul>
            </div>

            <div class="block container" id="cipa-logo">

            </div>

            <div class="foot-border-top"></div>
            <div class="container">

                <p id="copyright"><?= lang('all_rights_reserved') ?> CipaTravel ® 1992-<?= date('Y') ?>.</p>

            </div>

        </div>

        <?php $this->load->view('parts/scripts') ?>

    </body>
</html>